home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG Revelations
/
BMUG Revelations.toast
/
Programming
/
Programming Languages
/
Yerk 3.64
/
Supplement
/
my stuff
/
fontnames
< prev
next >
Wrap
Text File
|
1990-12-31
|
426b
|
16 lines
int font#
0 variable fontName 32 allot
\ given a font number, returns name of font else null string
: getFontName ( n -- addr len ) makeint fontName +base call getFontName
fontName count ;
: getfont# ( addr len -- n) str255 abs: font# call getFnum get: font#
dup 0=
IF buf255 count swap +base swap >uc
get: font# getFontName swap +base swap >uc
buf255 count fontName count $=
IF ." not found" drop THEN
THEN ;